package com.ruoyi.produce.process.worksheet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.produce.report.procedureProgress.domain.ProcedureProgress;
import io.swagger.annotations.ApiModelProperty;

import java.sql.Timestamp;

/**
 * 加工单工序移交
 * produce_procedure_transfer_sheet
 * @author Drj 2021/6/28
 */
public class ProduceProcedureTransferSheet extends BaseEntity {
    /**
     * 加工单编号
     */
    private String workSheetId;
    /**
     * 产线编号（自增）
     */
    @ApiModelProperty(value = "产线编号")
    private int productionLineId;

    /**
     * 产线名称
     */
    @ApiModelProperty("产线名称")
    private String productionLineName;
    /**
     * 自增编号
     */
    private String increasingId;
    /**
     * 填写人员编号
     */
    private String staffWriteId;
    /**
     * 填写人员名称
     */
    private String staffWriteName;
    /**
     * 当前工序编号
     */
    private String procedureCurrentId;
    /**
     * 当前工序名称
     */
    private String procedureCurrentName;
    /**
     * 转到工序名称
     */
    private String procedureTransferId;
    /**
     * 转到工序编号
     */
    private String procedureTransferName;
    /**
     * 移交数量
     */
    private double transferNumber;
    /**
     * 状态
     * 状态：完工1、返工2、报废3
     */
    private String transferSheetStatus;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp createTime;
    /**
     * 确认人员编号（接收人员）
     */
    private String staffConfirmId;
    /**
     * 确认人员名称（接收人员）
     */
    private String staffConfirmName;
    /**
     * 确认状态
     * 确认状态：由下一工序接收者通过确认按钮改变状态。
     * 未确认：0，已确认：1
     */
    private String transferSheetConfirmStatus;
    /**
     * 确认时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp confirmTime;

    public ProduceProcedureTransferSheet() {
    }


    public ProduceProcedureTransferSheet(ProduceWorkSheet produceWorkSheet) {
        this.workSheetId = produceWorkSheet.getWorkSheetId();
    }

    public ProduceProcedureTransferSheet(ProcedureProgress procedureProgress) {
        this.workSheetId = procedureProgress.getWorkSheetId();
    }


    public String getWorkSheetId() {
        return workSheetId;
    }

    public void setWorkSheetId(String workSheetId) {
        this.workSheetId = workSheetId;
    }

    public int getProductionLineId() {
        return productionLineId;
    }

    public void setProductionLineId(int productionLineId) {
        this.productionLineId = productionLineId;
    }

    public String getProductionLineName() {
        return productionLineName;
    }

    public void setProductionLineName(String productionLineName) {
        this.productionLineName = productionLineName;
    }

    public String getIncreasingId() {
        return increasingId;
    }

    public void setIncreasingId(String increasingId) {
        this.increasingId = increasingId;
    }

    public String getStaffWriteId() {
        return staffWriteId;
    }

    public void setStaffWriteId(String staffWriteId) {
        this.staffWriteId = staffWriteId;
    }

    public String getStaffWriteName() {
        return staffWriteName;
    }

    public void setStaffWriteName(String staffWriteName) {
        this.staffWriteName = staffWriteName;
    }

    public String getProcedureCurrentId() {
        return procedureCurrentId;
    }

    public void setProcedureCurrentId(String procedureCurrentId) {
        this.procedureCurrentId = procedureCurrentId;
    }

    public String getProcedureCurrentName() {
        return procedureCurrentName;
    }

    public void setProcedureCurrentName(String procedureCurrentName) {
        this.procedureCurrentName = procedureCurrentName;
    }

    public String getProcedureTransferId() {
        return procedureTransferId;
    }

    public void setProcedureTransferId(String procedureTransferId) {
        this.procedureTransferId = procedureTransferId;
    }

    public String getProcedureTransferName() {
        return procedureTransferName;
    }

    public void setProcedureTransferName(String procedureTransferName) {
        this.procedureTransferName = procedureTransferName;
    }

    public double getTransferNumber() {
        return transferNumber;
    }

    public void setTransferNumber(double transferNumber) {
        this.transferNumber = transferNumber;
    }

    public String getTransferSheetStatus() {
        return transferSheetStatus;
    }

    public void setTransferSheetStatus(String transferSheetStatus) {
        this.transferSheetStatus = transferSheetStatus;
    }

    @Override
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getStaffConfirmId() {
        return staffConfirmId;
    }

    public void setStaffConfirmId(String staffConfirmId) {
        this.staffConfirmId = staffConfirmId;
    }

    public String getStaffConfirmName() {
        return staffConfirmName;
    }

    public void setStaffConfirmName(String staffConfirmName) {
        this.staffConfirmName = staffConfirmName;
    }

    public String getTransferSheetConfirmStatus() {
        return transferSheetConfirmStatus;
    }

    public void setTransferSheetConfirmStatus(String transferSheetConfirmStatus) {
        this.transferSheetConfirmStatus = transferSheetConfirmStatus;
    }

    public Timestamp getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Timestamp confirmTime) {
        this.confirmTime = confirmTime;
    }

    @Override
    public String toString() {
        return "ProduceProcedureTransferSheet{" +
                "workSheetId='" + workSheetId + '\'' +
                ", increasingId=" + increasingId +
                ", staffWriteId='" + staffWriteId + '\'' +
                ", staffWriteName='" + staffWriteName + '\'' +
                ", procedureCurrentId='" + procedureCurrentId + '\'' +
                ", procedureCurrentName='" + procedureCurrentName + '\'' +
                ", procedureTransferId='" + procedureTransferId + '\'' +
                ", procedureTransferName='" + procedureTransferName + '\'' +
                ", transferNumber=" + transferNumber +
                ", transferSheetStatus='" + transferSheetStatus + '\'' +
                ", createTime=" + createTime +
                ", staffConfirmId='" + staffConfirmId + '\'' +
                ", staffConfirmName='" + staffConfirmName + '\'' +
                ", transferSheetConfirmStatus='" + transferSheetConfirmStatus + '\'' +
                ", confirmTime=" + confirmTime +
                '}';
    }
}
